package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.TravelComment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;


public interface TravelCommentRepository extends MongoRepository<TravelComment,String> {

    /**
     * 根据游记id 查找该游记下的所有评论
     * @param travelId
     * @return
     */
    List<TravelComment> findByTravelId(String travelId);
}
